const express = require('express');
const userProfiles = require('../controller/profiles');

const router = express.Router()

//获取指定用户资料
router.get('/:username', userProfiles.getUserProfiles)

//关注用户
router.post('/:username/follow', userProfiles.followUser)

//取消关注用户
router.delete('/:username/follow', userProfiles.deleteUserFollow)

module.exports = router